package com.neuedu.spring.dao;

import com.neuedu.spring.ds.MyDataSource;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Properties;

/**
 * 项目：      spring-framework
 * 类名:       RoleDao
 * 创建时间：  2024/3/12 10：03
 * 描述 :
 * 作者 :     张金山
 * QQ :     314649444
 * Site:      https://jshand.gitee.io
 */
public class RoleDao {

    private String name;
    private double salary;

    private boolean success;
    private List<String> usernames;
    private Map<String,String> roleMenus;

    private String[]  adminMenus;

    private Properties sysProperties;


    private MyDataSource myDataSource;



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public List<String> getUsernames() {
        return usernames;
    }

    public void setUsernames(List<String> usernames) {
        this.usernames = usernames;
    }

    public Map<String, String> getRoleMenus() {
        return roleMenus;
    }

    public void setRoleMenus(Map<String, String> roleMenus) {
        this.roleMenus = roleMenus;
    }

    public String[] getAdminMenus() {
        return adminMenus;
    }

    public void setAdminMenus(String[] adminMenus) {
        this.adminMenus = adminMenus;
    }

    @Override
    public String toString() {
        return "RoleDao{" +
                "name='" + name + '\'' +
                ", salary=" + salary +
                ", success=" + success +
                ", usernames=" + usernames +
                ", roleMenus=" + roleMenus +
                ", adminMenus=" + Arrays.toString(adminMenus) +
                ", sysProperties=" + sysProperties +
                ", myDataSource=" + myDataSource +
                '}';
    }

    public MyDataSource getMyDataSource() {
        return myDataSource;
    }

    public void setMyDataSource(MyDataSource myDataSource) {
        this.myDataSource = myDataSource;
    }

    public Properties getSysProperties() {
        return sysProperties;
    }

    public void setSysProperties(Properties sysProperties) {
        this.sysProperties = sysProperties;
    }

}
